package com.yunfei.api.v2.enums;

/**
 * 自定义请求状态码
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum GetAccountInfoEnum {
    SUCCESS(0, "成功"),
    NOROLE(-1, "权限不足"),
    CUSTNO_NOTNULL(106, "客户号不能为空"),
    RESERVENO_NOTNULL(100, "预约编号不能为空"),
    CREATOR_ID_NOTNULL(101, "合同生成用户不能为空"),
    BANK_NO_NOTNULL(102, "银行编号不能为空"),
    SUBBANK_NM1_NOTNULL(103, "分行名称不能为空"),
    SUBBANK_NM2_NOTNULL(104, "支行名称不能为空"),
    ACCT_NO_NOTNULL(105, "受益账号不能为空"),
    ACCT_NO_YIZHINULL(106, "您当前提交的账号与理财师填写的缴款账号不一致，请核查或联系理财师。"),
    NOT_MORE_ACCT_NO(107, "当前预约对应多个到账账号，无法签署电子合同，请联系理财师。"),
    ERROR(2040,"系统错误");


    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    GetAccountInfoEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
